import request from '@/utils/request'

/**
 * 获取厂商列表
 * @param params
 * @returns
 */
export const getManufacturerListApi = (params:any) => {
  return request.get('/ai/manufacturer/lists', { params: params })
}

/**
 * 添加厂商
 * @param params
 * @returns
 */
export const addManufacturerApi = (params:any) => {
  return request.post('/ai/manufacturer/create', params)
}

/**
 * 删除厂商
 * @param id
 * @returns
 */
export const deleteManufacturerApi = (id:number) => {
  return request.delete(`/ai/manufacturer/delete/${id}`)
}

/**
 * 修改厂商
 * @param params
 * @returns
 */
export const updateManufacturerApi = (params:any) => {
  return request.put('/ai/manufacturer/update', params)
}


/**
 * 获取文本模型列表
 * @param params
 * @returns
 */
export const getChatListApi = (params:any) => {
  return request.get('/ai/model/chat/lists', { params: params })
}

/**
 * 获取文本模型详情
 * @param id
 * @returns
 */
export const getChatModelDetailApi = (id:any) => {
  return request.get(`/ai/model/chat/detail/${id}`)
}

/**
 * 添加文本模型
 * @param params
 * @returns
 */
export const addChatModelApi = (params:any) => {
  return request.post('/ai/model/chat/create', params)
}

 /**
 * 删除文本模型
 * @param id
 * @returns
 */
export const deleteChatModelApi = (id:number) => {
  return request.delete(`/ai/model/chat/delete/${id}`)
}

/**
 * 修改文本模型
 * @param params
 * @returns
 */
export const updateChatModelApi = (params:any) => {
  return request.put('/ai/model/chat/update', params)
}

/**
 * 修改文本模型状态
 * @param params
 * @returns
 */
export const updateChatModelStatusApi = (params:any) => {
  return request.put('/ai/model/chat/updateStatus', params)
}



/**
 * 获取图片模型列表
 * @param params
 * @returns
 */
export const getImageModelListApi = (params:any) => {
  return request.get('/ai/model/image/lists', { params: params })
}

/**
 * 获取图片模型详情
 * @param id
 * @returns
 */
export const getImageModelDetailApi = (id:any) => {
  return request.get(`/ai/model/image/detail/${id}`)
}

/**
 * 添加图片模型
 * @param params
 * @returns
 */
export const addImageModelApi = (params:any) => {
  return request.post('/ai/model/image/create', params)
}

 /**
 * 删除图片模型
 * @param id
 * @returns
 */
export const deleteImageModelApi = (id:number) => {
  return request.delete(`/ai/model/image/delete/${id}`)
}

/**
 * 修改图片模型
 * @param params
 * @returns
 */
export const updateImageModelApi = (params:any) => {
  return request.put('/ai/model/image/update', params)
}

/**
 * 修改图片模型状态
 * @param params
 * @returns
 */
export const updateImageModelStatusApi = (params:any) => {
  return request.put('/ai/model/image/updateStatus', params)
}

/**
 * 获取图片模型类型列表
 * @param params
 * @returns
 */
export const getImageModelTypeListApi = () => {
  return request.get('/ai/model/image/modelType')
}




/**
 * 获取视频模型列表
 * @param params
 * @returns
 */
export const getVideoModelListApi = (params:any) => {
  return request.get('/ai/model/video/lists', { params: params })
}

/**
 * 获取视频模型详情
 * @param id
 * @returns
 */
export const getVideoModelDetailApi = (id:any) => {
  return request.get(`/ai/model/video/detail/${id}`)
}

/**
 * 添加视频模型
 * @param params
 * @returns
 */
export const addVideoModelApi = (params:any) => {
  return request.post('/ai/model/video/create', params)
}

 /**
 * 删除视频模型
 * @param id
 * @returns
 */
export const deleteVideoModelApi = (id:number) => {
  return request.delete(`/ai/model/video/delete/${id}`)
}

/**
 * 修改视频模型
 * @param params
 * @returns
 */
export const updateVideoModelApi = (params:any) => {
  return request.put('/ai/model/video/update', params)
}

/**
 * 修改视频模型状态
 * @param params
 * @returns
 */
export const updateVideoModelStatusApi = (params:any) => {
  return request.put('/ai/model/video/updateStatus', params)
}

/**
 * 获取视频模型类型列表
 * @param params
 * @returns
 */
export const getVideoModelTypeListApi = () => {
  return request.get('/ai/model/video/modelType')
}


/**
 * 获取应用模型列表
 * @param params
 * @returns
 */
export const getAppModelListApi = (params:any) => {
  return request.get('/ai/model/app/lists', { params: params })
}

/**
 * 获取应用模型详情
 * @param id
 * @returns
 */
export const getAppModelDetailApi = (id:any) => {
  return request.get(`/ai/model/app/detail/${id}`)
}

/**
 * 添加应用模型
 * @param params
 * @returns
 */
export const addAppModelApi = (params:any) => {
  return request.post('/ai/model/app/create', params)
}

 /**
 * 删除应用模型
 * @param id
 * @returns
 */
export const deleteAppModelApi = (id:number) => {
  return request.delete(`/ai/model/app/delete/${id}`)
}

/**
 * 修改应用模型
 * @param params
 * @returns
 */
export const updateAppModelApi = (params:any) => {
  return request.put('/ai/model/app/update', params)
}

/**
 * 修改应用模型状态
 * @param params
 * @returns
 */
export const updateAppModelStatusApi = (params:any) => {
  return request.put('/ai/model/app/updateStatus', params)
}
